import request from "@/router/axios";

export const getList = (current, size,params) => {
  return request({
    url: '/api/hg-logistics/inventory/manage/listLock',
    method: 'get',
    params: {
      ...params,
      current,
      size,
    }
  })
}


export const getDetailList = (current, size,pid) => {
  return request({
    url: '/api/hg-logistics/lock/log/list',
    method: 'get',
    params: {
      pid,
      current,
      size,
    }
  })
}


export const locked = (id,remark) => {
  return request({
    url: '/api/hg-logistics/inventory/manage/lock',
    method: 'post',
    params: {
      id,
      remark,
    }
  })
}


export const unlocked = (id,remark) => {
  return request({
    url: '/api/hg-logistics/inventory/manage/unlock',
    method: 'post',
    params: {
      id,
      remark,
    }
  })
}

export const getMaterialList = (current,size,data) => {
  return request({
    url: '/api/hg-public/material/info/page',
    method: 'get',
    params: {
      ...data,
      current,
      size,
    }
  })
}
